﻿//-----------------------------------------------------------------------
// <copyright file="WebAuthenticationResult.cs" company="In The Hand Ltd">
//     Copyright © 2014 In The Hand Ltd. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace InTheHand.Security.Authentication.Web
{
    /// <summary>
    /// Indicates the result of the authentication operation.
    /// </summary>
    public sealed class WebAuthenticationResult
    {
        /// <summary>
        /// Contains the protocol data when the operation successfully completes.
        /// </summary>
        public string ResponseData { get; internal set; }

        /// <summary>
        /// Returns the HTTP error code when ResponseStatus is equal to WebAuthenticationStatus.ErrorHttp.
        /// This is only available if there is an error.
        /// </summary>
        /// <value>The specific HTTP error, for example 400.</value>
        [System.CLSCompliant(false)]
        public uint ResponseErrorDetail { get; internal set; }

        /// <summary>
        /// Contains the status of the asynchronous operation when it completes.
        /// </summary>
        public WebAuthenticationStatus ResponseStatus { get; internal set; }
    }
}
